<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./tcs.css">
</head>

<body>
    <div class="map"></div>
    <button class="start">开始</button>
    <button class="stop">停止</button>

</body>

</html>
<script src="./map.js"></script>
<script src="./game.js"></script>
<script src="./food.js"></script>
<script src="./snake.js"></script>
<script>
    let g = new Game('.map')
    let start = document.querySelector('.start')
    console.log(start);
    // let stop = document.querySelector('.stop')
    start.addEventListener('click', () => g.start())
</script>